import request from '@/utils/request'

export function addProductions(data) {
  return request({
    url: '/production/addMission',
    method: 'post',
    data
  })
}

export function getProductionsPage(data) {
  return request({
    url: '/production/getMissionPage',
    method: 'post',
    data
  })
}

export function getProductionsInfo(data) {
  return request({
    url: '/production/getMissionInfo',
    method: 'post',
    data
  })
}

export function editProductions(data) {
  return request({
    url: '/production/editMission',
    method: 'post',
    data
  })
}

export function closeProductions(data) {
  return request({
    url: '/production/close',
    method: 'post',
    data
  })
}


export function clearProductions(data) {
  return request({
    url: '/production/clear',
    method: 'post',
    data
  })
}

export function supplementProductions(data) {
  return request({
    url: '/production/supplement',
    method: 'post',
    data
  })
}

export function delivery(data) {
  return request({
    url: '/production/delivery',
    method: 'post',
    data
  })
}

export function getProductionsLog(data) {
  return request({
    url: '/production/getMissionLog',
    method: 'post',
    data
  })
}

export function addProductionsLog(data) {
  return request({
    url: '/production/addMissionLog',
    method: 'post',
    data
  })
}

export function deleteProductionsLog(data) {
  return request({
    url: '/production/deleteMissionLog',
    method: 'post',
    data
  })
}

export function getMissionHistoryPage(data) {
  return request({
    url: '/production/getMissionHistoryPage',
    method: 'post',
    data
  })
}

export function getMissionHistoryLog(data) {
  return request({
    url: '/production/getMissionHistoryLog',
    method: 'post',
    data
  })
}

export function approveApply(data) {
  return request({
    url: '/production/approveApply',
    method: 'post',
    data
  })
}



export function missionTransfer(data) {
  return request({
    url: '/production/missionTransfer',
    method: 'post',
    data
  })
}


export function missionCancel(data) {
  return request({
    url: '/production/missionCancel',
    method: 'post',
    data
  })
}

export function submitApply(data) {
  return request({
    url: '/production/submitApply',
    method: 'post',
    data
  })
}
export function orderFinish(data) {
  return request({
    url: '/production/finish',
    method: 'post',
    data
  })
}

export function unsettled(data) {
  return request({
    url: '/production/unsettled',
    method: 'post',
    data
  })
}
export function getHistoryWorksLink(data) {
  return request({
    url: '/production/getHistoryWorksLink',
    method: 'post',
    data
  })
}


